<template>
	<view>
		<view class="radius50 bgFff flex flex-start mb20" v-for="(item,index) in dataArray" :key="index"
			@click="itemClick(item)">
			<view class="item-img">
				<image :src="api_host + item.lockIcon" mode=""></image>
			</view>
			<view class="flex1 p20 right-info flex-jus">
				<view class="c343 f32 bold">{{item.lockName}}</view>
				<view class="f24">
					<text class="c999">{{item.lockDesc}}</text>
				</view>
				<view class="cyellow">
					<text class="f24">￥</text>
					<text class="f32">{{item.price}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {} from '@/common/api.js'
	export default {
		name: '',
		props: {
			dataArray: {
				type: Array,
				default: []
			}
		},
		data() {
			return {

			}
		},
		onLoad(option) {

		},
		methods: {
			itemClick(item){
				this.$emit('itemClick',item)
			}
		}
	}
</script>

<style lang="scss">
	.item-img {
		width: 250rpx;
		height: 300rpx;
		image {
			width: 250rpx;
			height: 300rpx;
			border-radius: 50rpx 50rpx 0 50rpx;
		}
	}
	.right-info{
		height: 250rpx;
		align-items: flex-start;
		flex-direction: column;
	}
</style>